package lab02.test34;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ASUS on 2017/11/21.
 */
public class Test {
    public static void main(String[] args) {
        List<String> fruits=new ArrayList<>();

        fruits.add("apple");
        fruits.add("grape");
        fruits.add("banana");
        fruits.add("pear");
        Object[] s=fruits.toArray();
        System.out.println(fruits);
        System.out.println("最小数是"+s[0]);
        System.out.println("最大数是"+s[s.length-1]);

    }
}
